@extends('user._layouts.default')

@section('css')
    {{HTML::style('user/css/base.css')}}
@stop

@section('user-main')
<div style="font-size: 25px;">{{{$title or ''}}}</div>
<hr/>
<div data-am-widget="tabs" class="am-tabs am-tabs-default">
  <ul class="am-tabs-nav am-cf">
    <li class="am-active">
      <a href="[data-tab-panel-0]">会员基本资料</a>
    </li>
    <li class="">
      <a href="[data-tab-panel-1]">联系方式</a>
    </li>
    <li class="">
      <a href="[data-tab-panel-2]">职位技能</a>
    </li>
  </ul>
  <div class="am-tabs-bd">
    <div data-tab-panel-0 class="am-tab-panel am-active">
        @if(Session::has('message'))
            <div class="am-alert am-alert-{{Session::get('message')['type']}} am-margin am-text-center" data-am-alert>{{Session::get('message')['content']}}</div>
        @endif
        @if($errors->has())
            <div class="am-alert am-alert-danger am-margin am-text-center" data-am-alert>{{$errors->first()}}</div>
        @endif
        {{Form::model($user,array('url'=>'user/user/doprofile','method'=>'post','class'=>'am-form am-form-horizontal am-margin-top-lg'))}}
        <div class="am-form-group">
          {{Form::label('email','登录邮箱',array('class'=>'am-u-sm-2 am-form-label'))}}
          <div class="am-u-sm-10">
            {{Form::email('email')}}
          </div>
        </div>
        <div class="am-form-group">
          {{Form::label('username','用户名',array('class'=>'am-u-sm-2 am-form-label'))}}
          <div class="am-u-sm-10">
            {{Form::text('username')}}
          </div>
        </div>

        <div class="am-form-group">
          {{Form::label('nickname','昵称',array('class'=>'am-u-sm-2 am-form-label'))}}
          <div class="am-u-sm-10">
            {{Form::text('nickname')}}
          </div>
        </div>
        <div class="am-form-group">
          {{Form::label('birth','出生日期',array('class'=>'am-u-sm-2 am-form-label'))}}
          <div class="am-u-sm-10">
            {{Form::text('birth','',array('class'=>'data-am-datepicker','data-am-datepicker','readonly','value'=>'1988-08-08'))}}
          </div>
        </div>

        <div class="am-form-group">
          {{Form::label('address','居住地',array('class'=>'am-u-sm-2 am-form-label'))}}
          <div class="am-u-sm-3  am-margin-right-xs am-padding-right-xs">
            {{Form::select('province',array('广西'=>'广西','广东'=>'广东','上海'=>'上海'))}}
          </div>
          <div class="am-u-sm-3  am-margin-right-xs am-padding-right-xs am-padding-left-xs">
            {{Form::select('city',array('玉林'=>'玉林','南宁'=>'南宁','贵港'=>'贵港'))}}
          </div>
          <div class="am-u-sm-3 am-margin-right-xs am-padding-right-xs am-padding-left-xs">
            {{Form::select('county',array('青秀区'=>'青秀区','横县'=>'横县','高新区'=>'高新区'))}}
          </div>
          <div class="am-u-sm-1"></div>
        </div>

        <div class="am-form-group">
          {{Form::label('signature','个性签名(100字内)',array('class'=>'am-u-sm-2 am-form-label'))}}
          <div class="am-u-sm-10">
            {{Form::textarea('signature')}}
          </div>
        </div>

        <div class="am-form-group">
          <div class="am-u-sm-offset-2 am-u-sm-10">
            <div class="checkbox">
              <label>
                {{Form::checkbox('nofify',1,true)}} 有回复或者关注软件的新闻发布时邮件提醒我
              </label>
            </div>
          </div>
        </div>

        <div class="am-form-group">
          <div class="am-u-sm-offset-2 am-u-sm-10">
            <div class="checkbox">
              <label>
                {{Form::checkbox('weekly_report',1,true)}} 邮件订阅每周精粹
              </label>
            </div>
          </div>
        </div>

        <div class="am-form-group">
          <div class="am-u-sm-10 am-u-sm-offset-2">
            {{Form::submit('保存修改',array('class'=>'am-btn am-btn-primary'))}}
          </div>
        </div>
      {{Form::close()}}
    </div>
    <div data-tab-panel-1 class="am-tab-panel ">
      @if(Session::has('message'))
          <div class="am-alert am-alert-{{Session::get('message')['type']}} am-margin am-text-center" data-am-alert>{{Session::get('message')['content']}}</div>
      @endif
      @if($errors->has())
          <div class="am-alert am-alert-danger am-margin am-text-center" data-am-alert>{{$errors->first()}}</div>
      @endif
      {{Form::model($user,array('url'=>'user/user/doprofile','method'=>'post','class'=>'am-form am-form-horizontal am-margin-top-lg'))}}
      <div class="am-form-group">
        {{Form::label('contact_email','联系邮箱',array('class'=>'am-u-sm-2 am-form-label'))}}
        <div class="am-u-sm-8">
          {{Form::email('contact_email')}}
        </div>
        <div class="m-u-sm-2">
          <div class="checkbox">
            <label>
              {{Form::checkbox('contact_email_open',1,true)}} 公开
            </label>
          </div>
        </div>

      </div>
      <div class="am-form-group">
        {{Form::label('telephone_open','联系电话',array('class'=>'am-u-sm-2 am-form-label'))}}
        <div class="am-u-sm-8">
          {{Form::text('telephone_open')}}
        </div>
        <div class="m-u-sm-2">
          <div class="checkbox">
            <label>
              {{Form::checkbox('contact_email_open',1,true)}} 公开
            </label>
          </div>
        </div>

      </div>

      <div class="am-form-group">
        {{Form::label('aa','QQ',array('class'=>'am-u-sm-2 am-form-label'))}}
        <div class="am-u-sm-8">
          {{Form::text('aa')}}
        </div>
        <div class="m-u-sm-2">
          <div class="checkbox">
            <label>
              {{Form::checkbox('qq_open',1,true)}} 公开
            </label>
          </div>
        </div>

      </div>

      <div class="am-form-group">
        {{Form::label('wechat','微信',array('class'=>'am-u-sm-2 am-form-label'))}}
        <div class="am-u-sm-8">
          {{Form::text('wechat')}}
        </div>
        <div class="m-u-sm-2">
          <div class="checkbox">
            <label>
              {{Form::checkbox('wechat_open',1,true)}} 公开
            </label>
          </div>
        </div>

      </div>

      <div class="am-form-group">
        <div class="am-u-sm-10 am-u-sm-offset-2">
          {{Form::submit('保存修改',array('class'=>'am-btn am-btn-primary'))}}
        </div>
      </div>
    {{Form::close()}}
    </div>
    <div data-tab-panel-2 class="am-tab-panel ">
        @if(Session::has('message'))
            <div class="am-alert am-alert-{{Session::get('message')['type']}} am-margin am-text-center" data-am-alert>{{Session::get('message')['content']}}</div>
        @endif
        @if($errors->has())
            <div class="am-alert am-alert-danger am-margin am-text-center" data-am-alert>{{$errors->first()}}</div>
        @endif
        {{Form::model($user,array('url'=>'user/user/doprofile','method'=>'post','class'=>'am-form am-form-horizontal am-margin-top-lg'))}}
          <div class="am-form-group">
          {{Form::label('address','我是',array('class'=>'am-u-sm-2 am-form-label'))}}
          <div class="am-u-sm-4  am-margin-right-xs am-padding-right-xs am-margin-right-xs">
            {{Form::select('province',array('广西'=>'广西','广东'=>'广东','上海'=>'上海'),'上海')}}
          </div>
          <div>工龄</div>
          <div class="am-u-sm-4" style="">
            {{Form::select('province',array('广西'=>'广西','广东'=>'广东','上海'=>'上海'),'上海')}}
          </div>
        </div>

        <div class="am-form-group">
          <div class="am-u-sm-10 am-u-sm-offset-2">
            {{Form::submit('保存修改',array('class'=>'am-btn am-btn-primary'))}}
          </div>
        </div>
      {{Form::close()}}
    </div>
</div>
</div>
@stop
<!--[if (gte IE 9)|!(IE)]><!-->
@section('js')
    <script type="text/javascript" src="{{\URL::asset('user/js/base.js')}}"></script>
@stop